﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="Nhom-san-pham.aspx.cs" Inherits="Admin_Nhom_san_pham" Title="Shopping" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabledata" class="section">
        <h2 class="ico_mug">
            List Group</h2>
        <table width="100%">
            <tr>
                <td style="width: 50%">
                    <table width="500px" style="line-height: 32px">
                        <tr>
                            <td>
                                Ngôn ngữ
                            </td>
                            <td>
                                <asp:DropDownList ID="drLang" runat="server">
                                    <asp:ListItem Value="1" Text="Việt Nam"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="English"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Tên nhóm sản phẩm
                            </td>
                            <td>
                                <asp:TextBox ID="txtGroupName" runat="server" Width="200"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                    ControlToValidate="txtGroupName"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" style="padding-top: 10px">
                                &nbsp;
                            </td>
                            <td style="padding-top: 10px">
                                <asp:Button ID="btnSave" runat="server" Text="Thêm mới" OnClick="btnSave_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <asp:GridView ID="grvGroup" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" Width="300px">
                        <RowStyle BackColor="White" ForeColor="#330099" />
                        <Columns>
                            <asp:HyperLinkField DataTextField="IDGroup" HeaderText="ID" DataNavigateUrlFormatString="~/Admin/Nhom-san-pham.aspx?id={0}"
                                DataNavigateUrlFields="IDGroup">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Height="25px" />
                                <ItemStyle HorizontalAlign="Center" Width="80px" Height="30px" />
                            </asp:HyperLinkField>
                            <asp:BoundField DataField="GroupName" HeaderText="Nhóm Sản Phẩm" HeaderStyle-Height="25px">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="160px" Height="30px" />
                            </asp:BoundField>
                        </Columns>
                        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                        <AlternatingRowStyle BorderStyle="None" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
